var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var techConf = require('../../app/config/techConf');
var config = require('../config');
var dataApi = require('../../app/libs/dataApi');

suite('getConf', function () {
    test('获取科技升级消耗配置', function () {
        assert.equal(techConf.getTechEffValue(101, 2) != null, true);
        assert.equal(techConf.getTechLvlConf(102, 1) != null, true);

        var tech_open_conf = techConf.getTechOpenConf(113);
        tech_open_conf.length.should.above(0);

        var tech_id_list = techConf.getTechIdList(1);
        tech_id_list[0].should.eql(101);
        tech_id_list = techConf.getTechIdList(2);
        tech_id_list[0].should.eql(201);

        var tech_const_list = techConf.getBuildConstVal();
        tech_const_list.length.should.above(0);
    });
});
